/**
 * Created with WebStorm.
 * @Author: panda
 * @Date: 2022-05-18 09:24
 * @Description: 验证码请求接口
 */
import {createRequestClient} from './axios/request';
import {APISchema} from "@/api/axios/type";

interface CaptchaSchema extends APISchema {
  captcha: {
    request: {
      captchaId: string
    };
    response: {};
  };

}

export const captchaApi = createRequestClient<CaptchaSchema>({
  baseURL: process.env.NODE_ENV === 'development'
    ? process.env.VUE_APP_API_HOST + ''
    : '',
  apis: {
    captcha: 'GET /captcha',
  }
});
